import React, { useCallback, useEffect, useState } from 'react';
export default function App() {
  const [count, setCount] = useState(0);
  const data = {
    is_fetched: false,
  };
  useEffect(() => {
    setCount(count + 1);
  }, [data]);
  return (
    <div className="App">
      <h1>Hello CodeSandbox</h1>
      <button type="button" onClick={() => setCount(count + 1)}>
        {count}
      </button>
      <h2>Start editing to see some magic happen!</h2>
    </div>
  );
}
